
import net from '../index'
import url from '../url'

/* 
  基础数据管理api
*/
// 基础数据表格管理查询
export const getbasicData = (query) => {
  return net.post(url.getbasicData, query)
}
// 修改基础数据表格
export const editbasicData = (query) => {
  return net.post(url.editbasicData, query)
}
// 新增基础数据表格
export const addbasicData = (query) => {
  return net.post(url.addbasicData, query)
}
// 删除基础数据表格
export const delbasicData = (query) => {
  return net.post(url.delbasicData, query)
}
// 真删除基础数据表格
export const delTrueBasicData = (query) => {
  return net.post(url.delTrueBasicData, query)
}
// 查询省份
export const queryProvince = (query) => {
  return net.post(url.queryProvince, query)
}
// 修改省份
export const editProvince = (query) => {
  return net.post(url.editProvince, query)
}
// 市查询
export const queryCity = (query) => {
  return net.post(url.queryCity, query)
}
// 市修改
export const editCity = (query) => {
  return net.post(url.editCity, query)
}
// 区查询
export const queryArea = (query) => {
  return net.post(url.queryArea, query)
}
// 区修改
export const editArea = (query) => {
  return net.post(url.editArea, query)
}
// 国家查询、
export const queryCountry = (query) => {
  return net.post(url.queryCountry, query)
}
// 国家修改
export const editCountry = (query) => {
  return net.post(url.editCountry, query)
}
// 国民经济行业类型树查询
export const countryBusinessTypes = query => {
  return net.post(url.countryBusinessTypes, query)
}
// 新增国民经济行业分类
export const addEconomicType = query => {
  return net.post(url.addEconomicType, query)
}
// 删除国民经济行业分类
export const delEconomicType = query => {
  return net.post(url.delEconomicType, query)
}
/*
  注册类型
*/
export const getRegisterType = query => {
  return net.post(url.getRegisterType, query)
}
export const addRegisterType = query => {
  return net.post(url.addRegisterType, query)
}
export const editRegisterType = query => {
  return net.post(url.editRegisterType, query)
}
export const delRegisterType = query => {
  return net.post(url.delRegisterType, query)
}
/**
 * 治理结构类型
 */
export const getPosition = query => {
  return net.post(url.getPosition, query)
}
/*
  * 会计核算类型
*/
export const getAccountType = query => {
  return net.post(url.getAccountType, query)
}
export const addAccountType = query => {
  return net.post(url.addAccountType, query)
}
/**
 * 文件类型
 */
export const getFileTypeTree = query => {
  return net.post(url.getFileTypeTree, query)
}
export const addFileTypeTree = query => {
  return net.post(url.addFileTypeTree, query)
}

/*
  注册类型小类中查询大类
*/
export const basicRegisterType = query => {
  return net.post(url.basicRegisterType, query)
}


export const basicFileType = query => {
  return net.post(url.basicFileType, query)
}
export const basicManageType = query => {
  return net.post(url.basicManageType, query)
}


/*
  数据映射管理
*/
export const getDataMap = query => {
  return net.post(url.getDataMap, query)
}
export const editDataMap = query => {
  return net.post(url.editDataMap, query)
}
export const delDataMap = query => {
  return net.post(url.delDataMap, query)
}
export const addDataMap = query => {
  return net.post(url.addDataMap, query)
}

/**
 * 权限管理
*/
export const queryRoles = query => {
  return net.post(url.queryRoles, query)
}
export const queryUserByEmpName1 = query => {
  return net.post(url.queryUserByEmpName1, query)
}
export const saveUserRole = query => {
  return net.post(url.saveUserRole, query)
}
// 新增权限
export const addRolesJurisdiction = query => {
  return net.post(url.addRolesJurisdiction, query)
}
export const addCompanyJurisdiction = query => {
  return net.post(url.addCompanyJurisdiction, query)
}
export const addAllJurisdiction = query => {
  return net.post(url.addAllJurisdiction, query)
}
// 查看权限
export const queryDetailJurisdiction = query => {
  return net.post(url.queryDetailJurisdiction, query)
}
// 删除权限
export const deleteJurisdiction = query => {
  return net.post(url.deleteJurisdiction, query)
}
// 查询角色
export const queryRoleList = query => {
  return net.post(url.queryRoleList, query)
}
export const addRoles = query => {
  return net.post(url.addRoles, query)
}
export const updateRole = query => {
  return net.post(url.updateRole, query)
}
// 查询菜单
export const queryAllMenu = query => {
  return net.post(url.queryAllMenu, query)
}
// 分配菜单
export const linkMenuAndRole = query => {
  return net.post(url.linkMenuAndRole, query)
}
